package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 计算器
 * </p>
 *
 * @author tyrone
 * @since 2024-10-31
 */
@Getter
@Setter
@TableName("pms_calculator")
@ApiModel(value = "PmsCalculator对象", description = "计算器")
public class PmsCalculator implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("tag")
    private String tag;

    @ApiModelProperty("展示状态 0: 普通 1:vip")
    private Integer showStatus;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("所属计算器类型 0 计算器 1电动机 2 转换")
    private Integer type;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageSize = 10;

    @ApiModelProperty("分页参数")
    @TableField(exist = false)
    private Integer pageNum = 1;

}
